/*
 * @Author: 孙大大
 * @Date: 2022-03-22 09:40:02
 * @LastEditTime: 2022-03-25 10:53:59
 * @FilePath: \vue-admin-template-master\src\store\getters.js
 */
const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  token: (state) => state.user.token,
  name: (state) => state.user.userInfo.username,
  userId: (state) => state.user.userInfo.userId, // 建立用户id的映射
  staffPhoto: (state) => state.user.userInfo.staffPhoto, // 建立用户头像的映射
};
export default getters;
